Central nervous system depressants are used to treat conditions like narcolepsy and idiopathic hypersomnia. These medications work by helping you sleep better at night to decrease daytime drowsiness. Examples include sodium oxybate (Xyrem, Lumryz), calcium, magnesium, potassium, and sodium oxybates (Xywav), and Lumryz. You can choose the form that best fits your needs.