Magnesium Supplement

What are good magnesium pills to take especially while pregnant? I’m so tired, I haven’t had a good nights sleep without tossing & turning from restless legs. I’ve been up since 4am 😅