A type of written guarantee is called a warranty.