Where is the API for JIRA.Messages.showErrorMsg() , JIRA.Messages.showSuccessMsg()?

I can’t find the details for JIRA.Messages, I want to change it’s show time, JIRA.Messages.showErrorMsg(“Danger, Will Robinson!”,{closeable:true, timeout:2}) , who can help me , thank you very much!!

Maybe the AUI documentation will help u: https://docs.atlassian.com/aui/9.0.2/docs/messages.html