Enables or disables the given add-on.
This function must usually be called in the context of a user action, such as the click handler for a button. The browser may also ask the user to confirm the change.
This API requires the "management" API permission.
It is an asynchronous function that returns a Promise
.
The function allows enabling/disabling of theme addons, but will return an error if used to enable or disable other types of web extension.