There's some doc for the UI stuff in the help sect...
# suitescript
c
There's some doc for the UI stuff in the help section. I usually just use alert('<message>') myself