For years I blamed my restless nights and twitchy legs on stress. I tried earlier bedtimes, chamomile tea, blackout curtains — the whole ritual. Nothing quite worked. Then a friend who happens to be a nurse asked me, almost offhandedly, whether I got enough magnesium. I had no idea. It…