Close the current tab by pressing the key Delete.
Requires Firefox version 109 or higher, Chrome or a browser that supports WebExtensions Manifest V3.
If you want to use it on Pale Moon, see Delete Tab XUL which is available for Firefox 3.0 and up.