https://www.simplis.com/documentation/simplis/script_manual/topics/com_wm_closesheet.htm
SIMetrix Script Manual: WM_CloseSheet Command
This will close the most recently accessed or explicitly-specified content window. A content window may be a schematic, symbol editor, graph, text editor or...
simetrixscriptmanualwmcommand