The near-infrared helium triplet: A tracer of extended atmospheres