The recommended first line is cognitive behavioural therapy for insomnia (CBT-I), which combines stimulus control, sleep restriction and work on sleep-related thinking. It has solid evidence behind it and remains the baseline recommendation. Hypnotic medication is used sparingly, since it is not designed for long-term use.