Leg spasming

Hi. Ive been diagnosed with MS 25 years ago. My most debilitating symptom is fatigue but a symptom which is getting increasingly troublesome is leg spasms. Sort of electric shocks along with involuntary jerking, especially when resting and/or tired. Night time in bed can be a nightmare! Anyone got any suggestions to help?

Magnesium sorted my problem with restless legs and worth trying before going down the drug route.

I take Baclofen for this and it has really helped reduce painful spasms in my legs.
I did struggle with increasing fatigue at the beginning but Ive now got used to it .