Planes have headlights so that pilots can see what is in front of them. Unfortunately, they are only effective during takeoffs and landings. Even with the slight illumination offered by the headlights, only darkness is visible when looking out the front window of a cockpit.