Staging a spirited recovery, stock markets pared early losses to close higher on Thursday, with the benchmark Sensex rising by 185 points and the broader Nifty settling above 22,700 on strong value buying in IT and banking shares and a sharp rebound in the rupee.