Given the text of a manifest.json file, this function returns the permission warnings that would be given for the resulting add-on, as an array of strings.
This API does not require the "management" API permission.
This is an asynchronous function that returns a Promise
.