Lay out 2 sheets of foil. Top each with 3 husked ears of corn, a sprig each of thyme, basil and rosemary, salt and pepper to taste, and 2 tablespoons cut-up butter. Fold into packets; crimp to seal. Wrap each packet in another sheet of foil. Grill over medium-high heat, 15 minutes per side.