Text this: Sustaining Cooperation in Populations Guided by AI: A Folk Theorem for LLMs