From supporting muscle function to regulating blood sugar levels, magnesium is a true multitasker, essential for many benefits, including better sleep.