Cognitive behavioral therapy, sometimes called CBT , can effectively treat long-term sleep problems like insomnia.