Close tab from address bar?

I know there are special commands in Firefox that can be accessed through address bar, such as about:config or about:blank

I was wondering if it’s possible to close a tab or a window using similar command entered into an address bar. I’m not looking for a hotkey.

Thanks.