This question has options. Does the word "close" have the same definition in the next two sentences?

Close with the enemy.

Close the door.

Choose your answer from:
1). different meanings.
2). the same meaning.
1).