Choose File > Close or File > Close All.
Choose Command W to close the file or Option+Command W to close all files.