How to Quit firefox from the commandline?

I don’t want to kill it, like https://askubuntu.com/a/1368608/1002900 describes. I want to activate its Quit functionality (that it exposes via its GUI context menu) programmatically.

1 Like