This is my case, my trick is to imagine pleasurable fantasy scenarios and go over the smallest details.
I go a little bit more meta, and start imagining myself sleeping.
Kind of… say I’m part of the Start Trek crew. I imagine how would it be to sleep in the Enterprise. How is the room? What furniture is there? Is there a window/screen showing the outside? Etc…
Sounds similar to my trick, although I'm not sure if I really delve into details. I think the main purpose is to push out everything else from my mind, since whenever I have insomnia, it's not because I'm looking at my phone, but because I can't get something out of my mind.
I don’t know if that matters unless you think about things that require action.
My own experience is that if I think something needs to be acted on, and it’s very quick or very urgent, I just do it and go back to bed. If it’s neither, I write it down. I find either of those to be easier than trying to sleep with the endless nagging by the back of my brain.
I go a little bit more meta, and start imagining myself sleeping.
Kind of… say I’m part of the Start Trek crew. I imagine how would it be to sleep in the Enterprise. How is the room? What furniture is there? Is there a window/screen showing the outside? Etc…
For me, works wonderfully.