Short-term use of medications like melatonin or certain sedative-hypnotics can help with insomnia, but maintaining a sleep routine, reducing screen time, and managing stress are equally important. Always consult your doctor before starting any sleep medicine.