Clocking up enough hours of restorative sleep while young may help to ward off the condition, suggest the researchers. MS is influenced by both genetic and environmental factors, including smoking, teenage weight (BMI), Epstein-Barr virus infection, sun exposure, and vitamin D, note the researchers.