Close a tab in a project by identifying the window with Get Window() and then closing it with Close Window.
project = New Project();
project << Run Script(
dist << Close Window();
To close all tabs in a project, use Get Window List << Close Window().
project = New Project();
project << Run Script(
Get Window List( Project( project ) ) << Close Window();