The last light leaves
The Sun cannot really switch off. Even if the nuclear reactions in its core stopped, the heat stored inside would keep it shining for millions of years. This is a thought experiment.
So imagine it anyway: the light stops at the surface, all at once, and the solar wind with it. The last light to leave is a thin shell spreading outward at 299,792 kilometres a second. Inside the shell, space is already dark. Outside it, everything still looks normal.