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.
Negative reinforcement training isn't great.
This technique for barking is also very useful for quieting barking: some dogs will quiet very quickly and can be controlled just with the hand(s) over the snout with the low "nooooo" sound - others will fight to pull away and then you may need to add the gentle pinning action as well.
This technique comes from how that this is what mothers will do with their pups if they are barking and need them to be quiet - they will gently bite down on their snout from the top and growl quietly; maybe it's akin to a parent going "shhhhhhhhh" to a baby/child?
Also, my dog, Kylie, was 50 Lbs. The technique I described is harder to do on much larger dogs and much smaller dogs for various reasons, little dogs more often have alpha behaviours because the little buggers are hard to grab onto their snouts.