The phrase "to close the window" means to shut or secure a window by moving it so that it is no longer open.