mid-15c., "confined condition," from close (adj.) + -ness. Meaning "stuffiness" (of air) is from 1590s; meaning "nearness" is from 1716.
their closeness grew as the night wore on
the sudden closeness of the dock sent him into action