Check if you can use the arrivals lounge.
Check your luggage through.
I have gone through immigration the night before for a morning flight.
Lounge closes like 2am and reopens a few hours later. There are these beach style chairs you can sleep on in the airport. Be aware that many of them will be taken by other passengers. You may have to go the other side of the airport to find some available ones.