It's accomplished by buying a portion of its shares on the open market. The company might buy the shares directly or offer shareholders the option of tendering their shares at a fixed price.