It would depend what time your flight gets in and when you fly out. If your lay-over is during the day you could catch a cab up to Sarchi and shop for souvenirs.
You also might have enough time to go up to Poas volcano national park. It is about 25 miles north of the airport.