Take the subway/train about three stops into Narita City and see the shrine, walk around the city, have a good lunch, and head back to the airport. It will be much more comfortable than to Tokyo & back if you don't know what you are doing -- unless you are a skilled traveler with a lot of experience, then it is no big deal.