I have found it very convenient to hook a couple of universal modules to my garage door controller.
One simply operates the door, up or down, as a momentary contact.
The other is hooked to the "Lock" circuit. This one is set up as on/off rather than momentary.
At night I turn on the Lock module and then operate the door with the other. If the door is down, nothing happens. But, if it is up, even part way, it closes without having to go check.
I've also set a Macro up to make sure the door is closed and locked at 11:00 pm.