Oslo has been named "Green Capital of Europe 2019". Staying in an Oslo Airport hotel will allow you to easily get on your second day flight from Longyearbyen.
If you're adventurous and have the time, take the airport train into central Oslo. The trains depart and arrive all day. Oslo Central Station has shops, cafés, the Botanical Garden, and other cultural attractions.