var views = require("ko/views").editors();
var view = null // if you want to do more with it later
for v of views{
// loop through list of views to find the one you want
if (v.filepath == "aaa.txt"){
view = v;
}
}
view.scintilla.focus(); // 1.
// not sure why this is necessary but I can't dig further today, but now that you're focused on the view
var view = require("ko/views").current().get()
view.reloadIfChanged() // 3.
view.close(true); // 2. Close without asking to save