Can you translate in type script : 
from langchain.chat_models import ChatOpenAI
from langchain.prompts.chat import (
    ChatPromptTemplate,
    HumanMessagePromptTemplate,
)
from langchain.schema import SystemMessage
from langchain.chains import LLMChain

from example import example_1


# llm = OpenAI(model_name="gpt-3.5-turbo")
CHAT = ChatOpenAI(model_name="gpt-3.5-turbo", temperature=0.2)
SYSTEM_MESSAGE = SystemMessage(content="You are an personal code assistant for Adevinda employees.")


def build_script_documentation(
    script_code: str,
    doc_template: str = " - Description:\n ...\n - Dependencies:\n ... - Code issues:\n - Examples:\n ...\n",
    chat: ChatOpenAI = CHAT,
    system_message_prompt: SystemMessage = SYSTEM_MESSAGE,
):
    human_template = (
        """Write documentation for the script bellow using this exact template {doc_template}\n {script_code}"""
    )
    human_message_prompt = HumanMessagePromptTemplate.from_template(human_template)
    chat_prompt = ChatPromptTemplate.from_messages([system_message_prompt, human_message_prompt])
    response = chat(chat_prompt.format_prompt(doc_template=doc_template, script_code=script_code).to_messages())
    # print(response)
    return response.content


def build_repo_documentation(
    script_docs: str,
    doc_template: str = " - Description:\n ...\n - Dependencies schema (Mermaid format):\n ... - Code issues:\n - Examples:\n ...\n",
    chat: ChatOpenAI = CHAT,
    system_message_prompt: SystemMessage = SYSTEM_MESSAGE,
):
    human_template = """Write a general repo documentation in markdown format from the scripts documentation bellow using this exact template {doc_template}\n {script_docs}"""
    human_message_prompt = HumanMessagePromptTemplate.from_template(human_template)
    chat_prompt = ChatPromptTemplate.from_messages([system_message_prompt, human_message_prompt])
    response = chat(chat_prompt.format_prompt(doc_template=doc_template, script_docs=script_docs).to_messages())
    print(response)
    return response.content Wrap the entire output in JSON format.
user