Try to relax by eliminating stress from your life. Limit your caffeine intake as it is a stimulant.
Get plenty of sleep. Take frequent breaks from looking at the computer.
Gently massage your eyelid with your fingertips. You may also apply a warm compress to the twitching eyelid.
Try over-the-counter oral or topical antihistamines to slow down the eyelid's muscle contractions. Topical antihistamines can be found in many eye drops.
Most non-severe eyelid twitches go away on their own. If the eye twitching is severe or lasts more than a few days, see an eye doctor.