Does a thermal insulator keep heat in or out or both?

an ideal thermal insulator does not conduct heat at all,so it keeps heat out!