Modules within the N/ui namespace allow you to build a custom UI using SuiteScript 2.0. Use
[‘N/ui’] as the first argument of the define function as a shortcut to load the three modules (N/ui/dialog, N/ui/message, and N/ui/serverWidget) on server scripts, or the N/ui/dialog and N/ui/message on client scripts.
N/ui/message Module — Used to display and manage messages at the top of your User Interface.
N/ui/serverWidget Module — Contains the UI components used to work with user interfaces in NetSuite. This module is used to create custom pages, forms, lists and widgets that have the NetSuite look-and-feel.