Close a Popup from a Javascript Snippet

Here is the syntax: 

skuid.$(‘.ui-dialog-content’).last().dialog(‘close’);