The Na i D resonance lines in main‐sequence late‐type stars