Fetching details from the dictionary...
thus; in this way
斯くかくて物語ものがたりは幕まくを閉じとじた。
Thus the story came to a close.
斯くかくて彼かれは長年ながねんの夢ゆめを叶えかなえた。
Thus he fulfilled his long-held dream.
斯くかくて二人ふたりの友情ゆうじょうは一生いっしょう続くつづくことになった。
In this way, the two's friendship came to last a lifetime.