You might need to be off work for one to two weeks after carpal tunnel surgery. The surgery includes cutting the ligament that actually puts pressure on the nerves beneath. So, it is not supposed to heal after the operation, but to stay cut. Given this fact, the time off work would be required for the subcutaneous tissue and the skin to heal.
Please keep in mind that it might take longer period for you to move your wrist in all possible directions without any problems or pain. Analgesics and non-steroid anti-inflammatory drugs might be helpful. You might be advised to avoid situations in which extreme use of the wrist might be needed for even up to six months.
You might want to visit a neurosurgeon for more detailed information about surgery options and off work leave.