This article is from the Ergonomics and Typing Injury FAQ, by Dan Wallach firstname.lastname@example.org with numerous contributions by others.
The most important element of both prevention and recovery is to reduce tension
in the muscles and tendons. This requires learning how to relax. If you're
under a load of stress, this is doubly important. Tune out the world and breath
deep and regular. Relaxing should become a guiding principle in your work:
every three minutes take a three second break. EVERY THREE MINUTES, TAKE A
THREE SECOND BREAK. Really, do it every three minutes. It's also helpful to
work in comfortable surroundings, calm down, and relax.
If you can't sleep, you really need to focus on this. Rest, sleep, and
relaxation are really a big deal.
There are all kinds of other treatments, of course. Drugs can reduce
inflamation and pain. Custom-molded splints can forcefully prevent bad posture.
Surgery can fix some problems. Exercise can help strengthen your muscles.
Regular stretching can help prevent injury. Good posture and a good ergonomic
workspace promote reduced tension. Ice or hot-cold contrast baths also reduce
swelling. Only your doctor can say what's best for you.