Call an exterminator for the fastest, easiest fix. While it might be a little pricey, an exterminator can help choose treatments that will remove the insects without damaging your books. You can also set up a monthly preventative spray with your exterminator to make sure the insects don't return.
Set off a smoke bomb in your home. If you don't want to pay an exterminator, insect bombs from a local retailer can be an effective treatment for insects. Look for a bomb that is specifically targeted to the type of insect infesting your books. Be sure to leave your home when treating the area and air it out when you return.
Clean your books efficiently to avoid further infestation. Good housekeeping is the simplest way to preserve your books. By dusting and vacuuming around your books and keeping them nicely stacked on shelves, you can avoid an insect infestation.
Store your books away in a safe place. If your books are stored in plastic bins with lids closed tight, it is highly unlikely that insects will infect your books. Once you've treated the infestation, pack your books away and only keep out those that you can clean around regularly.