HRMS operates by generating ions from the sample and then separating these ions based on their mass-to-charge ratio using a high-resolution mass analyzer. The data obtained can be used to determine the exact mass of the ions, which helps in identifying the chemical structure of compounds. Common types of HRMS instruments include Orbitrap, Time-of-Flight (TOF), and Fourier-transform ion cyclotron resonance (FT-ICR) mass spectrometers.