Imagery rehearsal therapy (IRT) works like this: before bed, you journal a happier, kinder ending to the nightmare that keeps torturing you. Across clinical studies, this changes the nightmare's ending. The power of suggestion is strong enough to edit your sleep.