Others might have poor night vision (mine tends to bump into things / have trouble using stairs if it’s pitch-black).
Learn to know your dog, they are not things that can be left alone in a fully dark, unheated home.
Cameras to watch the dog when we're out and lights to turn on when it starts getting dark.
We also have a training treat dispenser so when she barks at strangers, it'll dispense treats to keep her distracted and learn to calm down instead of barking.
In many ways, dogs are like kids, and you go through the same things for them.
I say this only because we did not manage to successfully train out the bark at strangers behavior in our otherwise pretty well-trained dog.
It doesn't necessarily train them from barking at strangers but it gets them into a more relaxed state, which can let you use other tricks to decondition them.