Giant sloths were on the menu for humans that arrived in the Americas 30,000 years ago, a new study suggests.