Typing strain usually builds from hours of small stresses, not single bad sessions. Three adjustments remove most of it: neutral wrists, supported elbows, and regular breaks. This is general guidance, not medical advice; if typing hurts, see a professional.
Wrists float, never rest
Resting wrists on a desk edge while typing bends them upward and presses on the underside of the wrist. Float your hands above the keyboard and let your fingers arc down onto the keys. A soft palm rest is fine for pauses, not for typing.
Elbows at the keyboard's height
Set your chair so your elbows bend at roughly a right angle with the keyboard at, or just below, elbow height. If the desk is too high, raise the chair and put your feet on a box.
Screen at eye level
Looking down at a laptop for hours rounds your shoulders and tightens your forearms, which slows your fingers. Raise the screen so your gaze is level; a stack of books works fine, with a separate keyboard.
The 25-5 rule
Every 25 minutes, stand up for five. Spend a minute or two of that on your hands: make a fist, spread your fingers wide, rotate your wrists. A short timed test after the break (15 seconds is plenty) tells you whether you are loose again.
Put this guide to work
Open a test and practise what you just read.