So there are different ways to avoid insomnia with jet lag.
Some of the non-pharmacologic ways is to try to adjust your sleep schedule
according to the time zone that you're flying to starting a few days before
your actual flight. Now, it is easier to acclimate to flying to the West
because it's easier to delay your sleep time than it is to fall asleep a
little bit earlier. It might be easier to get a flight flying East in the
night so you get there in the morning and stay awake until 10:00 p.m.,
their local time.
Now, you can also use medications to help you fall asleep and stay awake
during the day wherever you are. Sleep aids, such as Ambien, Lunestar, or
melatonin can help you fall asleep in whatever time zone you're in, but you
can also use wake promoting agents to help you stay awake if you're there
for a short amount of time and don't want to adjust your sleep schedule to
that time zone.
So flying West is a little bit easier to acclimate to their time zone than
it is flying East. So to help prevent insomnia due to jet lag, it's
important to start planning ahead starting a few days ahead of your actual
flight. It's also important to consult with your physician whether you will
need any sleep aids or wake promoting agent to help you acclimate to the
time zone when you reach your destination.