The Short Version
The claim states a standard theorem of metric space theory. In metric spaces, compactness is equivalent to being complete and totally bounded, and multiple authoritative sources explicitly prove both directions. The only needed caveat is scope: this is not the general topological Heine-Borel theorem, but the metric-space characterization of compactness.