ko.views.manager.currentView.close();
// There is also this one - to avoid the save prompt when the file is dirty:
//ko.views.manager.currentView.closeUnconditionally();
though you may not even need to open it inside of Komodo - like Nathan says - as there are APIs to open and close files in memory (rather than having to open them in the Komodo editor).