Gimp.quit

function quit(): void {
    // Gjs wrapper for gimp_quit()
}
  

Forcefully causes the GIMP library to exit and close down its connection to main gimp application. This function never returns.