Bananas contain potassium and magnesium, two nutrients that play a role in muscle contraction, which may help restless legs syndrome, but consuming one food cannot cure an ailment. There is no harm in experimenting to see if it helps alleviate symptoms.