Hold command + q for about a second and quit active app.
03-14-2021: 2.0 released
If you want to adjust the hold time, rewrite the following part of the script.
// The length to press command + q. (milliseconds)
// default: 700
const holdTime = 700;
If you want to see the HUD, rewrite the following part of the script.
// Display HUD
// default: false
const hud = false;