Buying to open means you’re opening a position by purchasing shares. Buying to close means you’re buying to close a short position. With short selling you sell first, then buy to exit your position.