As already stated, you can only close windows/tabs that you previously opened yourself. None of your code snippets comply with this.
If you want to close a child window from its parent you need to store a reference to it, e.g.:
var child = window.open("");
setTimeout(function(){
child.close();
},100);
Demo
If you want to close the child window from itself you need to run the code inside the window.
If you overwrite current document with a blank one your your code disappears.
Now, Chrome is a special beast. It opens each tab in a different process. That means that several good old techniques that involve different tabs do not work at all. For instance, you can't even use the target parameter in window.open() to share a window.