I see a lot of people suggesting potassium, and that's what I usually do, but for a while now, it turns out that I needed magnesium (helps relax the muscles). I'm not a doctor, so definitely check with a professional, but having some nuts like walnuts might be a good idea.
That doesn't always happen. You have to be seated a certain way for it to work.