The display.close() method closes a display file that was previously opened with the display.open() method. The rich display file cannot be used again unless you explicitly reopen it with display.open().
Example
pjs.defineDisplay("display", "screen.json", { userOpen: true }); display.open(); //Logic working with the display file fields, etc. display.close();
RPG Equivalent
CLOSE