Trim away the bruised, cracked or moldy parts of the tomatoes and discard. Roughly chop the tomatoes, reserving their juices, and set aside.
Heat the oil in a medium saucepan over medium-high heat. Cook the garlic and onion, stirring, until lightly browned, about 5 minutes. Add the tomatoes with about half of their juices (discard the rest), thyme and basil leaves and bring to a boil. Reduce the heat and simmer, uncovered, until thickened, 25 to 30 minutes.
Remove and discard the thyme sprigs. Stir in 1 1/2 teaspoons salt and add pepper to taste. Serve immediately or store, covered, in the refrigerator for up to 3 days or in the freezer for up to 2 months.
Copyright 2017 Television Food Network, G.P. All rights reserved.