I agree the headlights are the last thing I'd suspect, especially if BOTH are quitting
Do BOTH lamps quit?
High beam? Low beam? BOTH?
Pay attention!! Check the high beams, does the dash indicator STAY ON when the lamps are out??
If so, the headlight switch and dimmer switch are OK, and the problem is either in the bulkhead connector or out in the engine bay
Check the ground for the headlight harness out by the lamps, and check the lamp connectors for corrosion/ looseness.
Some of your top suspects:
Bad ground out at the headlights
Bad/ corroded headlight connectors. (Usually affects only one light!!!)
Bad connections in the bulkhead connector (Usually affects only either high, or low beams)
Bad dimmer switch -- check your high beam indicator!!!!
Bad headlight switch -- affects high or low, has a built in breaker that can get weak, the connector may be loose/ corroded, or the switch going bad. check your high beam indicator!!!
Failed "welded splice" in the under dash harness. It happens!!! This splice is taped up under the dash in the harness, a few inches from the black ammeter wire connection, as branches off to the fuse panel hot buss, the ignition switch, and the headlight switch, 'n maybe coupl' o' other things.