I ususally let them grow until it's clear that any new tomatoes will not be able to mature before the first frost, then I pinch them off so that all the energy goes to developing the last remaining tomatoes. I'm not sure if that's a good thing to do, but it seems to work for me.