Hotel Near San Salvador Airport
Transfer time from airport to La Libertad is just a tad under 30 minutes.
What is the flight itinerary that requires you to overnight?
You make a good point in that your stay would be during nighttime only... in that case I suppose the airport hotel would be best option but an extremely boring one. It's a shame you would not be able to see something of El Salvador during your stop.