it could be the case that CTS symptoms are caused by issues in the carpal tunnel itself, but IMO its ust as (if not more likely) to be fasial adhesion which could be present anywhere from the neck, through the armpits right the way down the pathway of the nerve. This means the fascia (web of matter throughout the body thats like a set of sheaths for all your muscle fibres and internal organs) gets sticky or dry and binds up, instead of gliding freely - this pulls and snags at nerves causing RSI symptoms. If so treatment (asides from less general activity obviously avoiding the injurious activity altogether) would be along correcting posture, breaking bad habits of moving in the exact same way (ie getting out of bed, folding arms etc), avoiding dehydration and especially following a course of stretching exercises that aim to gently loosen the myofascia along the nerve pathway. To a lesser extent loosening ALL myofascial adhesions in the upperbody, as it tends to be connected. Stretching in the wrong order, doing too much too soon, or too intense will aggravate the problem, so you need to practice awareness & really 'listen' to the subtle signals your body sends.
E2A: im very wary of painkillers being used where RSI is indicated as they can allow someone to carry on hurting themselves without realising it. Unless you know specifically whats causing the problem and know for sure that anti-inflammatorys are suitable, id avoid the temptation to carry on doing the injuriopus activity at all. Trust me, RSI isnt something you want to play around with, its better to (temporarily) drop hobbies, make lifestyle adjustments, maybe even change jobs if at all possible.