CBT (cognitive behavioral therapy) helps you figure out what thoughts and behaviors are messing with your sleep, then teaches you how to swap them out for habits that support good sleep. It’s not just about popping a pill; it’s about fixing what’s causing your sleep problems.