Jǐ cì cháng tán hòu, liǎng rén jiànjiàn hùxiāng shì wéi zhījǐ.
After a few long conversations, the two gradually came to see each other as confidants.
Tips
usage
知己 (zhījǐ, 'one who knows oneself') is a heavy word in Chinese — closer to 'soul mate' or 'true confidant' than 'friend'. Saying 视为知己 is a strong declaration of trust, not casual.