Teabags are one of the best sources of nitrogen and an excellent inclusion to compost since they leave. However, tea also contains tannins which can increase the acidity in the soil. So, add them when you notice that the soil is getting more alkaline than slightly acidic.